<template>
	<view class="container">
		<view class="autho-image">
			<image src="../../static/信封.png" mode=""></image>
		</view>
		<view class="autho-code">
			<view class="autho-body">
				<text>输入授权码</text>
				<view class="autho-scan" @tap="scanCode">
					<image src="../../static/soayisao.png" mode=""></image>
				</view>
			</view>
		</view>
		<button 
		style="background-color: #000; 
		color: white; 
		width: 600rpx;
		margin-top: 80rpx;
	    border-radius: 40rpx;
		">确认激活</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			scanCode() {
				uni.scanCode({
					success: (res) => {
						console.log(res.scanType)
						console.log(res.result)
						uni.navigateTo({
							url: 'http://code.yunchazs.com/5308240101031OMW.html'
						})
					}
				})
			}
		}
	}
</script>

<style lang="scss">
.container{
	.autho-button{
		width:550rpx;
	}
	.autho-image{
		image{
			width: 400rpx;
			height: 300rpx;
		}
		padding-top: 200rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.autho-code{
		.autho-body{
			text{
				font-size: 36rpx;
				color: #a7adb4;
			}
			.autho-scan{
				image{
					width: 50rpx;
					height: 50rpx;
				}
				width: 65rpx;
				height: 65rpx;
				display: flex;
				background-color: #d7d7d7;
				border-radius: 50rpx;
				justify-content: center;
				align-items: center;
			}
			display: flex;
			justify-content: space-between;
			align-items: center;
			width: 550rpx;
			height: 80rpx;
		}
		width: 620rpx;
		height: 110rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		background-color: #f0f2f4;
		border-radius: 20rpx;
		margin: auto;
	}
	width: 100%;
	height: 100vh;
	background-color: #fff;
}
</style>
